copyInto

suspend fun copyInto(destDir: Path, recursive: Boolean = true, force: Boolean = true)

Copy this file or directory intodestDir, creating it if it does not exist. Note that this differs from cp which will sometimes copy into.

See also

Parameters

recursive

whether to recursively copy children

force

whether to overwrite files in destDir. A false value is sometimes ignored, do not rely on.

Sources

js source
Link copied to clipboard